<template>
  <div class="app-container">
    <!-- <app-header> </app-header> -->
    <div class="app-main">
      <div class="error-401">
        <img src="@/assets/images/common/root.png" alt="" />
        <p>抱歉，您没有访问权限</p>
        <button @click="$router.replace({ path: '/' })">返回首页</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "error401",
  data() {
    return {};
  }
};
</script>

<style lang="scss" scoped>
.app-main {
  position: relative;
  .error-401 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    img {
      width: 24%;
      max-width: 300px;
    }
    p {
      font-size: 0.13rem;
      color: #8a8a8a;
      font-weight: 500;
      margin-top: 0.2rem;
    }
    button {
      $color: #3a9bde;
      font-size: 0.14rem;
      margin-top: 0.15rem;
      color: $color;
      padding: 5px 0.3rem;
      letter-spacing: 0.02rem;
      border-radius: 5px;
      font-weight: 500;
      border: 1px solid #{$color};
    }
  }
}
</style>
